function [ mul ] = appx( a,b, t )
%APPX Summary of this function goes here
%  Detailed explanation goes here

if b==0
    res = (a==0);
    return;
end

r = a/b;
mul = round(r);

r = r-mul;
if ~(r>-t && r<t)
    mul = 0;
end

